import { defineStore} from 'pinia'
import { ref } from 'vue'
import {contentM,recommendM,questionDetail} from '../../typings'
export const findStore = defineStore('find', () => {
  // 点赞的作品
  const myUpList = ref<Array<recommendM>>([]); 
  myUpList.value = JSON.parse(localStorage.getItem('myUpList')) || [];  
  // 关注的作品
  const myFollowList = ref<Array<recommendM>>([]); 
  myFollowList.value = JSON.parse(localStorage.getItem('myFollowList')) || [];  
  // 关注的问题Q
  const myQuestionList = ref<Array<questionDetail>>([]); 
  myQuestionList.value = JSON.parse(localStorage.getItem('myQuestionList')) || [];  
  return { myUpList,myFollowList,myQuestionList};
})


